package com.entity;

import java.io.Serializable;
import java.util.Date;

//redis数据存储在内存，所以需要序列化，可以防止redis-server退出时，数据丢失
public class Student implements Serializable {
    private Integer id;
    private String name;
    private Double sorce;
    private Date birthday;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getSorce() {
        return sorce;
    }

    public void setSorce(Double sorce) {
        this.sorce = sorce;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
